public class Test1 {
    public static void main(String[] args) {

        int []arr={0,1,2,3,4,5,6,7,8,9};

        int temp;
        temp=arr[0];

        for (int i = 0; i < arr.length-1; i++) {
            arr[i]=arr[i+1];
        }

        arr[arr.length]=temp;
    }
}
